﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using FFACETools;

namespace SMN
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(String[] Params)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form1 fr;
            if (Params.Length == 1)
            {
                try
                {
                    if (Params[0] == "true" || Params[0] == "false")
                    {
                        fr = new Form1(bool.Parse(Params[0]));
                    }
                    else
                    {
                        fr = new Form1(false);
                    }
                }
                catch(Exception)
                {
                    fr = new Form1(false);
                }
            }
            else
            {
                fr = new Form1(false);
            }
            Application.Run(fr);
        }
    }
}
